<template>
  <div>
    <div class="nav">
      {{this.$store.state.name}}
    </div>
    <div>

    </div>
  </div>
</template>

<script>
export default {
    mounted() {
      // console.log(this.$route.params)
      document.title = this.name
      
    },
  computed:{
    name(){
      return this.$store.state.name
    },
    
  },
  name:"Detail"
}
</script>

<style scoped>
.nav{
  height: 50px;
  background-color: #c20c0c;
  line-height: 50px;
  text-align: center;
  color: #fff;
}
</style>